<?php 
use yii\helpers\Html;
use app\components\Lcms;
?>  <img src="<?php echo Html::encode($this->context->img); ?>"  style="width:0px; height: 0px; display: inherit;position:absolute;top: -30px  " />  
  <script>
           
           var dataForWeixin={};
           share.up_data=function(){
           dataForWeixin = {
                appId: "",
                TLImg: share.img,
                MsgImg: share.img,
                url:share.url,
                title:share.title,
                desc:share.desc,
                fakeid: "",
                callback: function () {
                }
            };
        };
        share.up_data();
           



            function shareFriend() {
                WeixinJSBridge.invoke('sendAppMessage', {
                    "appid": dataForWeixin.appId,
                    "img_url": dataForWeixin.MsgImg,
                    "link": dataForWeixin.url,
                    "desc": dataForWeixin.desc,
                    "title": dataForWeixin.title
                }, function (res) {
                    _report('send_msg', res.err_msg);
                });
                YixinJSBridge.invoke('sendAppMessage', {
                    "appkey": dataForWeixin.appId,
                    "type": webpage,
                    "pic": dataForWeixin.MsgImg,
                    "link": dataForWeixin.url,
                    "desc": dataForWeixin.desc,
                    "title": dataForWeixin.title,
                    "url": dataForWeixin.url
                }, function (res) {
                    _report('send_msg', res.err_msg);
                });
            }

            function shareTimeline() {
                WeixinJSBridge.invoke('shareTimeline', {
                    "img_url": dataForWeixin.TLImg,
                    "link": dataForWeixin.url,
                    "desc": dataForWeixin.desc,
                    "title": dataForWeixin.title
                }, function (res) {
                    _report('timeline', res.err_msg);
                });
            }
            function shareWeibo() {
                WeixinJSBridge.invoke('shareWeibo', {
                    "content": dataForWeixin.desc,
                    "url": dataForWeixin.url
                }, function (res) {
                    _report('weibo', res.err_msg);
                });
            }


            document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
                WeixinJSBridge.on('menu:share:appmessage', function (argv) {
                    shareFriend();
                });
                WeixinJSBridge.on('menu:share:timeline', function (argv) {
                    shareTimeline();
                });
                WeixinJSBridge.on('menu:share:weibo', function (argv) {
                    shareWeibo();
                });
            }, false);


</script>


   <div class="share none" id="share_content" >
                    <div class="inner">
                        <div class="close" onclick="sh.close();"></div>
                        <div class="t">分享本页面至</div>
                        <div class="sharebody">

                            <ul>
                                <li><a onclick="sh.weibo()"><span class="pic pic1"></span>新浪微博</a></li>
                                                 
                                <li><a onclick="sh.renren()"><span class="pic pic5"></span>人人</a></li>
                                <li><a onclick="sh.douban()"><span class="pic pic6"></span>豆瓣</a></li>
                            </ul>
                        </div>
                         
                        
                    </div>
</div>
<div class="share_beijing"></div>